package com.ming.test.page.Duotai;

import com.ming.test.page.Duotai.Father;

public class Son extends Father {
    @Override
    public void Say(){
        System.out.println("闭嘴!");
    }

    public void eat(){
        System.out.println("吃!");
    }

    public static void main(String[] args){
//        Object > Person > Student  根据这个关系判断，没存在关系就是false
        Son son = new Son();
        System.out.println(son instanceof Son);//true
    }
}